home *** CD-ROM | disk | FTP | other *** search
/ TPUG - Toronto PET Users Group / TPUG Users Group CD / TPUG Users Group CD.iso / AMIGA / AMICUS / AMICUS05.ADF / IFF / putpict.h < prev    next >
C/C++ Source or Header  |  1986-04-20  |  2KB  |  50 lines

  1.  
  2. #ifndef PUTPICT_H
  3. #define PUTPICT_H
  4. /** putpict.h ********************************************************* */
  5. /* PutPict().  Given a BitMap and a color map in RAM on the Amiga,      */
  6. /* outputs as an ILBM.  See /iff/ilbm.h & /iff/ilbmw.c.       23-Jan-86 */
  7. /*                                                                      */ 
  8. /* By Jerry Morrison and Steve Shaw, Electronic Arts.                   */ 
  9. /* This software is in the public domain.                               */ 
  10. /*                                                                      */ 
  11. /* This version for the Commodore-Amiga computer.                       */
  12. /*                                                                      */ 
  13. /************************************************************************/
  14. #ifndef COMPILER_H
  15. #include "iff/compiler.h"
  16. #endif
  17.  
  18. #ifndef ILBM_H
  19. #include "iff/ilbm.h"
  20. #endif
  21.  
  22. #ifdef FDwAT
  23.  
  24. /****** IffErr *************************************************************/
  25. /* Returns the iff error code and resets it to zero                        */
  26. /***************************************************************************/
  27. extern IFFP IffErr(void);
  28.  
  29. /****** PutPict ************************************************************/
  30. /* Put a picture into an IFF file                                          */
  31. /* Pass in mask == NULL for no mask.                                       */
  32. /*                                                                         */
  33. /* Buffer should be big enough for one packed scan line                    */
  34. /* Buffer used as temporary storage to speed-up writing.                   */
  35. /* A large buffer, say 8KB, is useful for minimizing Write and Seek calls. */
  36. /* (See /iff/gio.h & /iff/gio.c).                                          */
  37. /***************************************************************************/
  38. extern BOOL PutPict(LONG, struct BitMap *, WORD,WORD, WORD *, BYTE *, LONG);
  39.            /* file, bm,           pageW,pageH,colorMap, buffer,bufsize */
  40.  
  41. #else /*not FDwAT*/
  42.  
  43. extern IFFP IffErr();
  44. extern BOOL PutPict();
  45.  
  46. #endif FDwAT
  47.  
  48. #endif PUTPICT_H
  49.  
  50.